home *** CD-ROM | disk | FTP | other *** search
/ Revista CD Expert 41 / CD Expert nº 41.iso / DReign2 / DR2Demo.exe / data1.cab / Files / missions / demo / Demo Mission 2.zwp / objective_allfleeing.cfg < prev    next >
Encoding:
Text File  |  2000-09-01  |  824 b   |  47 lines

  1. //////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright 1997-99 Pandemic Studios
  4. //
  5. // Dark Reign II
  6. //
  7.  
  8. CreateObjectType("objective_allfleeing", "Objective")
  9. {
  10.   GameObj();
  11.   ObjectiveObj()
  12.   {
  13.     Condition("AND")
  14.     {
  15.       Condition("VarConstInteger", "@.flee1", "==", 1);
  16.       Condition("VarConstInteger", "@.flee2", "==", 1);
  17.     }
  18.  
  19.     Action()
  20.     {
  21.       NewObjective("objective_wait_a_tick");
  22.     }
  23.   }
  24. }
  25.  
  26. CreateObjectType("objective_wait_a_tick", "Objective")
  27. {
  28.     GameObj();
  29.     ObjectiveObj()
  30. {
  31.   Condition("Timer")
  32.   {
  33.     Time(60);
  34.   }
  35.  
  36.   Action()
  37.   {
  38.       ExecuteScript("GetOnTheShuttle", "gcshuttle", 10000)
  39.       {
  40.         Op("%.tag", "=", "AllTraitors");
  41.         Op("%.region", "=", "NearShuttle");
  42.       }
  43.   }
  44. }
  45. }
  46.  
  47.